cd "/media/Environ/Compile/rocksndiamonds-4.1.4.1" && /usr/bin/gdb -- "./rocksndiamonds"
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 14188)]
[New Thread 0x7fffe393b700 (LWP 14189)]
[New Thread 0x7fffe1a9e700 (LWP 14190)]
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
double free or corruption (out)

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a3535 in __GI_abort () at abort.c:79
#2  0x00007ffff78fa508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0528d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7900c1a in malloc_printerr (str=str@entry=0x7ffff7a06ff8 "double free or corruption (out)") at malloc.c:5341
#4  0x00007ffff7902730 in _int_free (av=0x7ffff7a3cc40 <main_arena>, p=0x55555f425360, have_lock=<optimized out>) at malloc.c:4306
#5  0x0000555555713b28 in checked_free (ptr=0x55555f425370) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c7755d0 "rnd_spica") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x00005555556ecbff in TapeStartRecording (random_seed=1583893886) at tape.c:584
#9  0x00005555556a7c7b in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11322
#10 0x00005555556648c0 in HandleMainMenu (mx=0, my=0, dx=0, dy=0, button=0) at screens.c:2134
#11 0x000055555564a6a5 in HandleKey (key=13, key_status=1) at events.c:2304
#12 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9c0) at events.c:1462
#13 0x0000555555646b84 in HandleEvents () at events.c:249
#14 0x0000555555646d67 in EventLoop () at events.c:348
#15 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb18) at main.c:7762
(gdb) # just hit esc
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 19398)]
[New Thread 0x7fffe393b700 (LWP 19399)]
[New Thread 0x7fffe1a9e700 (LWP 19400)]
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
free(): invalid pointer

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a3535 in __GI_abort () at abort.c:79
#2  0x00007ffff78fa508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0528d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7900c1a in malloc_printerr (str=str@entry=0x7ffff7a0343b "free(): invalid pointer") at malloc.c:5341
#4  0x00007ffff790242c in _int_free (av=<optimized out>, p=<optimized out>, have_lock=<optimized out>) at malloc.c:4165
#5  0x0000555555713b28 in checked_free (ptr=0x55555f86a730) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c775720 "rnd_spica") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x000055555568771f in GameEnd () at game.c:4775
#9  0x000055555568761d in GameWon () at game.c:4722
#10 0x00005555556a7dbd in GameActionsExt () at game.c:11371
#11 0x00005555556a8485 in GameActions () at game.c:11625
#12 0x000055555567c8b9 in HandleGameActions () at screens.c:8369
#13 0x0000555555646d83 in EventLoop () at events.c:359
#14 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb18) at main.c:7762
(gdb) # just finished a level
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 27906)]
[New Thread 0x7fffe393b700 (LWP 27907)]
[New Thread 0x7fffe1a9e700 (LWP 27908)]
[Thread 0x7fffe393b700 (LWP 27907) exited]
[Thread 0x7fffe397c700 (LWP 27906) exited]
[Thread 0x7fffe1a9e700 (LWP 27908) exited]
[Inferior 1 (process 27903) exited normally]
(gdb) # it didn't add to hall of fame, it added to level completion highlight, it saved tape
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 30949)]
[New Thread 0x7fffe393b700 (LWP 30950)]
[New Thread 0x7fffe1a9e700 (LWP 30951)]
[Thread 0x7fffe393b700 (LWP 30950) exited]
[Thread 0x7fffe397c700 (LWP 30949) exited]
[Thread 0x7fffe1a9e700 (LWP 30951) exited]
[Inferior 1 (process 30946) exited normally]
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 31038)]
[New Thread 0x7fffe393b700 (LWP 31039)]
[New Thread 0x7fffe1a9e700 (LWP 31040)]

orocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 30 ms (max. 33 fps / 66 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 30 ms (max. 33 fps / 66 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 30 ms (max. 33 fps / 66 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
free(): double free detected in tcache 2

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) 
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a3535 in __GI_abort () at abort.c:79
#2  0x00007ffff78fa508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0528d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7900c1a in malloc_printerr (str=str@entry=0x7ffff7a06f58 "free(): double free detected in tcache 2") at malloc.c:5341
#4  0x00007ffff79026fd in _int_free (av=0x7ffff7a3cc40 <main_arena>, p=0x55555c79a6f0, have_lock=<optimized out>) at malloc.c:4193
#5  0x0000555555713b28 in checked_free (ptr=0x55555c79a700) at misc.c:1275
#6  0x0000555555708809 in setLevelArtworkDir (ti=0x555558bea4f0) at setup.c:398
#7  0x0000555555645972 in CheckArtworkTypeForRedefinedCustomElements (type=2) at init.c:5758
#8  0x0000555555645a50 in InitOverrideArtwork () at init.c:5814
#9  0x0000555555645d9e in ReloadCustomArtwork (force_reload=0) at init.c:5925
#10 0x00005555556628b0 in DrawMainMenu () at screens.c:1596
#11 0x00005555556b31ab in RequestQuitGameExt (skip_request=1, quick_quit=1, message=0x5555557c9d60 "Do you really want to quit the game?") at game.c:15028
#12 0x00005555556b3252 in RequestQuitGame (ask_if_really_quit=0) at game.c:15048
#13 0x000055555564ab24 in HandleKey (key=27, key_status=1) at events.c:2376
#14 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9c0) at events.c:1462
#15 0x0000555555646b84 in HandleEvents () at events.c:249
#16 0x0000555555646d67 in EventLoop () at events.c:348
#17 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb18) at main.c:7762
(gdb) # one move after starting again
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 10530)]
[New Thread 0x7fffe393b700 (LWP 10531)]
[New Thread 0x7fffe1a9e700 (LWP 10532)]
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 29 ms (max. 34 fps / 68 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
free(): invalid pointer

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a3535 in __GI_abort () at abort.c:79
#2  0x00007ffff78fa508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0528d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7900c1a in malloc_printerr (str=str@entry=0x7ffff7a0343b "free(): invalid pointer") at malloc.c:5341
#4  0x00007ffff790242c in _int_free (av=<optimized out>, p=<optimized out>, have_lock=<optimized out>) at malloc.c:4165
#5  0x0000555555713b28 in checked_free (ptr=0x55555b372690) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c7742d0 "rnd_spica") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x00005555556ecbff in TapeStartRecording (random_seed=1581949278) at tape.c:584
#9  0x00005555556a7c7b in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11322
#10 0x00005555556648c0 in HandleMainMenu (mx=0, my=0, dx=0, dy=0, button=0) at screens.c:2134
#11 0x000055555564a6a5 in HandleKey (key=13, key_status=1) at events.c:2304
#12 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9c0) at events.c:1462
#13 0x0000555555646b84 in HandleEvents () at events.c:249
#14 0x0000555555646d67 in EventLoop () at events.c:348
#15 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb18) at main.c:7762
(gdb) # ? pushed a bunch a buttons, restarting level?
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 11024)]
[New Thread 0x7fffe393b700 (LWP 11025)]
[New Thread 0x7fffe1a9e700 (LWP 11026)]
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 29 ms (max. 34 fps / 68 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 10 ms (max. 100 fps / 200 %)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
malloc(): smallbin double linked list corrupted

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a3535 in __GI_abort () at abort.c:79
#2  0x00007ffff78fa508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0528d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7900c1a in malloc_printerr (str=str@entry=0x7ffff7a073a8 "malloc(): smallbin double linked list corrupted") at malloc.c:5341
#4  0x00007ffff7903fa4 in _int_malloc (av=av@entry=0x7ffff7a3cc40 <main_arena>, bytes=bytes@entry=24) at malloc.c:3640
#5  0x00007ffff79061a2 in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3428
#6  0x0000555555713a90 in checked_calloc (size=24) at misc.c:1254
#7  0x00005555557150fd in openFile (filename=0x555559b845b0 "/home/bryan/.rocksndiamonds/editorsetup.conf", mode=0x5555557d234c "rb") at misc.c:2145
#8  0x000055555570b55d in loadSetupFileData (setup_file_data=0x55555fbc5550, filename=0x555559b845b0 "/home/bryan/.rocksndiamonds/editorsetup.conf", top_recursion_level=1, is_hash=0) at setup.c:2086
#9  0x000055555570ba95 in loadSetupFileList (filename=0x555559b845b0 "/home/bryan/.rocksndiamonds/editorsetup.conf") at setup.c:2257
#10 0x00005555556e9c64 in LoadUserDefinedEditorElementList (elements=0x555555ad36e0 <editor_el_user_defined_ptr>, num_elements=0x555555ad36e8 <num_editor_el_user_defined>) at files.c:11243
#11 0x00005555556b59ad in ReinitializeElementList () at editor.c:5723
#12 0x00005555556bd551 in CreateLevelEditorGadgets () at editor.c:7159
#13 0x000055555563a4d9 in InitGadgets () at init.c:169
#14 0x000055555565f55d in ChangeViewportPropertiesIfNeeded () at tools.c:9723
#15 0x000055555566e7f0 in DrawHallOfFame (level_nr=40, highlight_position=0) at screens.c:4631
#16 0x0000555555687771 in GameEnd () at game.c:4791
#17 0x000055555568761d in GameWon () at game.c:4722
#18 0x00005555556a7dbd in GameActionsExt () at game.c:11371
#19 0x00005555556a8485 in GameActions () at game.c:11625
#20 0x000055555567c8b9 in HandleGameActions () at screens.c:8369
#21 0x0000555555646d83 in EventLoop () at events.c:359
#22 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb18) at main.c:7762
(gdb) # had just pressed enter to save at end of completion of level
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 15325)]
[New Thread 0x7fffe393b700 (LWP 15326)]
[New Thread 0x7fffe1a9e700 (LWP 15327)]

[Thread 0x7fffe393b700 (LWP 15326) exited]
[Thread 0x7fffe397c700 (LWP 15325) exited]
[Thread 0x7fffe1a9e700 (LWP 15327) exited]
[Inferior 1 (process 15322) exited normally]
(gdb) 
(gdb) # it saved tape, saved hall of fame, don't know about level completion color highlighting, since I played/beat it from a point in the tape
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 15838)]
[New Thread 0x7fffe393b700 (LWP 15839)]
[New Thread 0x7fffe1a9e700 (LWP 15841)]
[Thread 0x7fffe393b700 (LWP 15839) exited]
[Thread 0x7fffe397c700 (LWP 15838) exited]
[Thread 0x7fffe1a9e700 (LWP 15841) exited]
[Inferior 1 (process 15835) exited normally]
(gdb) q
